package com.tyoj.tyojbackendjudgeservice.controller;

import com.tyoj.model.entity.QuestionThumb;
import com.tyoj.tyojbackendclient.service.JudgeFeignClient;
import com.tyoj.tyojbackendjudgeservice.judge.JudgeService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/inner")
public class JudgeInnerController implements JudgeFeignClient {

    @Resource
    private JudgeService judgeService;

    @Override
    public QuestionThumb doJudge(long questionSubmitId) {
        return judgeService.doJudge(questionSubmitId);
    }
}
